using Bases;
using Modules.Game.Roles;
using UnityEngine;

namespace Modules.Game.Skills
{
    public class SkillPanel : MonoBehaviourSimplify
    {
        public GameObject skillPrefab;

        private void Awake()
        {
            InitSkills();
        }

        private void InitSkills()
        {
            for (var i = 0; i < 4; i++)
            {
                var skillItem = Instantiate(skillPrefab, transform);

                var data = HeroModel.Instance.GetSkillData(i);
                skillItem.GetComponent<SkillItem>().InitData(i, data);
            }
        }

        protected override void OnBeforeDestroy()
        {
        }
    }
}